<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	<title><ui:insert name="title" /> | Loja de Veículos</title>
</h:head>

<h:body>

	<div class="header">

		<h:form>
			<p:menubar>
				<p:menuitem value="Login" action="login?faces-redirect=true"
					immediate="true"
					rendered="#{autenticacaoBean.usuarioLogado == null}" />
				<p:menuitem value="Logout" action="#{autenticacaoBean.logout()}"
					rendered="#{autenticacaoBean.usuarioLogado != null}" />
				<p:menuitem value="Home" action="home?faces-redirect=true" immediate="true" />
			</p:menubar>
		</h:form>

		<div class="jumbotron">
			<div class="container">
				<h1>
					<ui:insert name="titulo" />
				</h1>
			</div>
		</div>

	</div>

	<div class="container">
		<ui:insert name="conteudo" />
	</div>

</h:body>

</html>
